<%@ page language="java" import="java.util.*,com.beans.*"
	pageEncoding="UTF-8"%>
<html>
<head>
<title>所有留言</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (index0.psd) -->
<table width="1025" height="901" border="0" align="center" cellpadding="0" cellspacing="0" id="__01">
<tr>
		<td colspan="5">
			<img src="images/listmoreword_01.jpg" width="839" height="40" alt=""></td>
		<td>
			<img src="images/listmoreword_02.jpg" alt="" width="82" height="40" border="0" usemap="#Map11"></td>
<td>
			<img src="images/listmoreword_03.jpg" alt="" width="74" height="40" border="0" usemap="#Map12"></td>
<td>
			<img src="images/listmoreword_04.jpg" width="1" height="40" alt=""></td>
		<td colspan="2">
			<img src="images/listmoreword_05.jpg" width="28" height="40" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="40" alt=""></td>
	</tr>
	<tr>
		<td colspan="10">
			<img src="images/listmoreword_06.jpg" width="1024" height="177" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="177" alt=""></td>
	</tr>
	<tr>
		<td colspan="10">
			<img src="images/listmoreword_07.jpg" width="1024" height="8" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="8" alt=""></td>
	</tr>
	<tr>
		<td colspan="3" rowspan="2">
			<img src="images/listmoreword_08.jpg" alt="" width="155" height="76" border="0" usemap="#Map"></td>
<td colspan="7">
			<img src="images/listmoreword_09.jpg" width="869" height="53" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="53" alt=""></td>
	</tr>
	<tr>
		<td rowspan="12">
			<img src="images/listmoreword_10.jpg" width="30" height="562" alt=""></td>
		<td colspan="5" rowspan="12"><table width="818" height="562" border="0" cellspacing="0">
          <tr>
            <th align="left" valign="top" scope="row"><span style="font-size: 13px">
              <%
									int pageno = Integer.parseInt(request.getParameter("pageno"));
									int totalrecord = Integer
											.parseInt(request.getParameter("msgcount"));
									int totalpage = 0;
									int pagesize = 16;
									if (totalrecord % pagesize == 0) {
										totalpage = totalrecord / pagesize;
									} else {
										totalpage = (int) Math.floor(totalrecord / pagesize) + 1;
									}
									ArrayList<Msgbean> allmsg = (ArrayList<Msgbean>) request
											.getAttribute("allmsg");
									Iterator<Msgbean> it = allmsg.iterator();
									int i = 0;
									while (it.hasNext()) {
										Msgbean msg = (Msgbean) it.next();
										out.println(msg.getMsg());
										 out.println("<div align=right>"+msg.getUsername()+"--");
			  out.println(msg.getTime()+"</div>");
									}
									if (pageno != 1) {
										out.print("<a href=/vk/deal?deal=allmsg&pageno=1>　|< </a>");
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + (pageno - 1)+ "> < </a>");
									}
									for (i = pageno; i <= pageno + 4; i++) {
										if (i > totalpage)
											break;
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + i + ">" + i
												+ "</a>");
									}
									if (pageno != totalpage) {
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + (pageno + 1)
												+ "> > </a>");
										out.print("<a href=/vk/deal?deal=allmsg&pageno=" + totalpage
												+ "> >| </a>");
									}
									out.print("Pages:(" + totalpage + ")total");
								%>
            </span></th>
          </tr>
        </table></td>
<td rowspan="12">
			<img src="images/listmoreword_12.jpg" width="21" height="562" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="23" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_13.jpg" alt="" width="155" height="72" border="0" usemap="#Map2"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="72" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_14.jpg" alt="" width="155" height="69" border="0" usemap="#Map3"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="69" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_15.jpg" alt="" width="155" height="72" border="0" usemap="#Map4"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="72" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_16.jpg" alt="" width="155" height="70" border="0" usemap="#Map5"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="70" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_17.jpg" width="155" height="13" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="13" alt=""></td>
	</tr>
	<tr>
		<td colspan="3">
			<img src="images/listmoreword_18.jpg" width="155" height="46" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="46" alt=""></td>
	</tr>
	<tr>
		<td rowspan="5">
			<img src="images/listmoreword_19.jpg" width="24" height="197" alt=""></td>
		<td>
			<img src="images/listmoreword_20.jpg" alt="" width="96" height="40" border="0" usemap="#Map6"></td>
<td rowspan="5">
			<img src="images/listmoreword_21.jpg" width="35" height="197" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="40" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/listmoreword_22.jpg" alt="" width="96" height="45" border="0" usemap="#Map8"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="45" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/listmoreword_23.jpg" alt="" width="96" height="47" border="0" usemap="#Map9"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="47" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/listmoreword_24.jpg" alt="" width="96" height="49" border="0" usemap="#Map10"></td>
<td>
			<img src="images/分隔符.gif" width="1" height="49" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/listmoreword_25.jpg" width="96" height="16" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="16" alt=""></td>
	</tr>
	<tr>
		<td colspan="10">
			<img src="images/listmoreword_26.jpg" width="1024" height="60" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="60" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/分隔符.gif" width="24" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="96" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="35" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="30" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="654" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="82" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="74" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="1" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="7" height="1" alt=""></td>
		<td>
			<img src="images/分隔符.gif" width="21" height="1" alt=""></td>
		<td></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map7">
  <area shape="rect" coords="2,0,154,84" href="/vk/deal?deal=message"
				target="_self">
</map>

<map name="Map"><area shape="rect" coords="3,1,169,102" href="index.jsp">
</map>
<map name="Map2"><area shape="rect" coords="4,2,154,88" href="index_nv.jsp">
</map>
<map name="Map3"><area shape="rect" coords="1,1,167,94" href="index_nan.jsp">
</map>
<map name="Map4"><area shape="rect" coords="2,1,180,88" href="index_lx.jsp">
</map>
<map name="Map5"><area shape="rect" coords="3,3,192,108" href="/vk/deal?deal=message">
</map>
<map name="Map6"><area shape="rect" coords="1,1,104,54" href="http://www.10010.com" target="_blank">
</map>
<map name="Map8"><area shape="rect" coords="1,2,122,68" href="http://www.chinamobile.com/" target="_blank">
</map>
<map name="Map9"><area shape="rect" coords="1,6,112,54" href="http://www.rayli.com.cn/" target="_blank">
</map>
<map name="Map10"><area shape="rect" coords="4,5,98,57" href="http://www.ct10000.com/" target="_blank">
</map>
<map name="Map11">
<area shape="rect" coords="2,2,87,49" href="regist.jsp">
</map>
<map name="Map12"><area shape="rect" coords="4,2,82,47" href="login.jsp">
</map></html>